/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.polymorphism.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.assignment2.polymorphism.model.Baby;
import za.ac.cput.assignment2.polymorphism.model.Child;
import za.ac.cput.assignment2.polymorphism.model.Parent;

/**
 *
 * @author Matthew
 */
@Configurable
public class HumanConf {
    
    @Bean (name="parent")
    public Parent par(){
        return new Parent();
    }
    
    @Bean (name="child")
    public Child chd(){
        return new Child();
    }
    
    @Bean (name="baby")
    public Baby bby(){
        return new Baby();
    }
    
}
